home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlasr.z / dlasr
Encoding:
Text File  |  2002-10-03  |  5.4 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAASSSSRRRR((((3333SSSS))))                                                            DDDDLLLLAAAASSSSRRRR((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLASR - perform the transformation  A := P*A, when SIDE = 'L' or 'l' (
  10.      Left-hand side )  A := A*P', when SIDE = 'R' or 'r' ( Right-hand side )
  11.      where A is an m by n real matrix and P is an orthogonal matrix,
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE DLASR( SIDE, PIVOT, DIRECT, M, N, C, S, A, LDA )
  15.  
  16.          CHARACTER     DIRECT, PIVOT, SIDE
  17.  
  18.          INTEGER       LDA, M, N
  19.  
  20.          DOUBLE        PRECISION A( LDA, * ), C( * ), S( * )
  21.  
  22. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  23.      These routines are part of the SCSL Scientific Library and can be loaded
  24.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  25.      directs the linker to use the multi-processor version of the library.
  26.  
  27.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  28.      4 bytes (32 bits). Another version of SCSL is available in which integers
  29.      are 8 bytes (64 bits).  This version allows the user access to larger
  30.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  31.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  32.      only one of the two versions; 4-byte integer and 8-byte integer library
  33.      calls cannot be mixed.
  34.  
  35. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  36.      DLASR performs the transformation A := P*A, when SIDE = 'L' or 'l' (
  37.      Left-hand side ) A := A*P', when SIDE = 'R' or 'r' ( Right-hand side )
  38.      where A is an m by n real matrix and P is an orthogonal matrix,
  39.      consisting of a sequence of plane rotations determined by the parameters
  40.      PIVOT and DIRECT as follows ( z = m when SIDE = 'L' or 'l' and z = n when
  41.      SIDE = 'R' or 'r' ):
  42.  
  43.      When  DIRECT = 'F' or 'f'  ( Forward sequence ) then
  44.  
  45.         P = P( z - 1 )*...*P( 2 )*P( 1 ),
  46.  
  47.      and when DIRECT = 'B' or 'b'  ( Backward sequence ) then
  48.  
  49.         P = P( 1 )*P( 2 )*...*P( z - 1 ),
  50.  
  51.      where  P( k ) is a plane rotation matrix for the following planes:
  52.  
  53.         when  PIVOT = 'V' or 'v'  ( Variable pivot ),
  54.            the plane ( k, k + 1 )
  55.  
  56.         when  PIVOT = 'T' or 't'  ( Top pivot ),
  57.            the plane ( 1, k + 1 )
  58.  
  59.         when  PIVOT = 'B' or 'b'  ( Bottom pivot ),
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAASSSSRRRR((((3333SSSS))))                                                            DDDDLLLLAAAASSSSRRRR((((3333SSSS))))
  71.  
  72.  
  73.  
  74.            the plane ( k, z )
  75.  
  76.      c( k ) and s( k )  must contain the  cosine and sine that define the
  77.      matrix  P( k ).  The two by two plane rotation part of the matrix P( k ),
  78.      R( k ), is assumed to be of the form
  79.  
  80.         R( k ) = (  c( k )  s( k ) ).
  81.                  ( -s( k )  c( k ) )
  82.  
  83.      This version vectorises across rows of the array A when SIDE = 'L'.
  84.  
  85.  
  86. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  87.      SIDE    (input) CHARACTER*1
  88.              Specifies whether the plane rotation matrix P is applied to A on
  89.              the left or the right.  = 'L':  Left, compute A := P*A
  90.              = 'R':  Right, compute A:= A*P'
  91.  
  92.      DIRECT  (input) CHARACTER*1
  93.              Specifies whether P is a forward or backward sequence of plane
  94.              rotations.  = 'F':  Forward, P = P( z - 1 )*...*P( 2 )*P( 1 )
  95.              = 'B':  Backward, P = P( 1 )*P( 2 )*...*P( z - 1 )
  96.  
  97.      PIVOT   (input) CHARACTER*1
  98.              Specifies the plane for which P(k) is a plane rotation matrix.  =
  99.              'V':  Variable pivot, the plane (k,k+1)
  100.              = 'T':  Top pivot, the plane (1,k+1)
  101.              = 'B':  Bottom pivot, the plane (k,z)
  102.  
  103.      M       (input) INTEGER
  104.              The number of rows of the matrix A.  If m <= 1, an immediate
  105.              return is effected.
  106.  
  107.      N       (input) INTEGER
  108.              The number of columns of the matrix A.  If n <= 1, an immediate
  109.              return is effected.
  110.  
  111.              C, S    (input) DOUBLE PRECISION arrays, dimension (M-1) if SIDE
  112.              = 'L' (N-1) if SIDE = 'R' c(k) and s(k) contain the cosine and
  113.              sine that define the matrix P(k).  The two by two plane rotation
  114.              part of the matrix P(k), R(k), is assumed to be of the form R( k
  115.              ) = (  c( k )  s( k ) ).  ( -s( k )  c( k ) )
  116.  
  117.      A       (input/output) DOUBLE PRECISION array, dimension (LDA,N)
  118.              The m by n matrix A.  On exit, A is overwritten by P*A if SIDE =
  119.              'R' or by A*P' if SIDE = 'L'.
  120.  
  121.      LDA     (input) INTEGER
  122.              The leading dimension of the array A.  LDA >= max(1,M).
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDLLLLAAAASSSSRRRR((((3333SSSS))))                                                            DDDDLLLLAAAASSSSRRRR((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.